﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Order.MicroService.ViewModel
{
    /// <summary>
    /// 添加订单实体类
    /// </summary>
    public class AddOrdersInfoDto
    {
        //[MaxLength(6)]
        [Required]
        //[StringLength(6, MinimumLength = 2, ErrorMessage = "订单号长度必须为6位")]
        public string OrderNum { get; set; }
        /// <summary>
        /// 订单名字
        /// </summary>
        [DataType(DataType.Text)]
        //[Compare("OrderNum")]
        public string OrderName { get; set; }
        /// <summary>
        /// 订单状态
        /// </summary>
        public string OrderStatus { get; set; }
        [Range(1, 100)]
        public decimal? TotalAmount { get; set; }
    }
}
